package lesson.myicharstream;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class BufferedWIriterDemo {
    public static void main(String[] args) throws IOException {
        BufferedWriter bw = new BufferedWriter(new FileWriter("Day12\\src\\lesson\\myicharstream\\d.txt"));

        bw.write(97);
        bw.flush();
        bw.write("\r\n");

        char [] chr = {97,98,99,100,101};
        bw.write(chr);
        bw.flush();
        bw.write("\r\n");

        bw.write("String");
        bw.flush();
        bw.write("\r\n");

        String line = "abcde";
        bw.write(line,0,2);
        bw.flush();
        bw.close();
    }
}
